﻿<UserControl x:Class="Hydra.Shell.Controls.HydraCommandBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:sr="clr-namespace:Divelements.SandRibbon;assembly=Divelements.SandRibbon"
	xmlns:srp="clr-namespace:Divelements.SandRibbon.Primitives;assembly=Divelements.SandRibbon"
	xmlns:local="clr-namespace:Hydra.Shell"
    mc:Ignorable="d"
    d:DesignHeight="140" d:DesignWidth="1200">

    <Grid x:Name="LayoutRoot" Background="White">
        <sr:Ribbon Name="RibbonBar" ApplicationName="" Title="" ApplicationButtonImage="/HydraShellClient;component/Resources/Icons/Hydra.png" TabIndex="1" LivePreview="Ribbon_LivePreview" ApplicationButtonColor="#FFFEC55D" DataContext="{Binding}">
            <sr:Ribbon.ApplicationPopup>
                <sr:ApplicationPopup>
                    <sr:ApplicationPopup.Content>
                        <TextBlock TextWrapping="Wrap" Margin="10" Width="160" Text="Any Silverlight control can be placed inside the right-hand pane of the Application Menu." VerticalAlignment="Center" TextAlignment="Center" />
                    </sr:ApplicationPopup.Content>
                    <sr:MenuItem Text="New" Image="/HydraShellClient;component/Resources/Icons/32/new.png" />
                    <sr:MenuItem Text="Open" Image="/HydraShellClient;component/Resources/Icons/32/open.png" />
                    <sr:MenuItem Text="Save" Image="/HydraShellClient;component/Resources/Icons/32/save.png" />
                    <sr:MenuItem Text="Save As" Image="/HydraShellClient;component/Resources/Icons/32/saveas.png">
                        <sr:RibbonPopup>
                            <sr:Heading Content="Save a copy of the document" />
                            <sr:MenuItem Text="Word Document" Image="/HydraShellClient;component/Resources/Icons/32/saveas.png" />
                            <!-- Description="Save the document in the default file format." -->
                        </sr:RibbonPopup>
                    </sr:MenuItem>
                    <sr:Separator />
                    <sr:MenuItem Text="Print" Image="/HydraShellClient;component/Resources/Icons/32/print.png" />
                </sr:ApplicationPopup>
            </sr:Ribbon.ApplicationPopup>
            <sr:Ribbon.ToolBar>
                <sr:QuickAccessToolBar>
                    <sr:Button Text="Save" SmallImage="/HydraShellClient;component/Resources/Icons/16/save.png" Size="Small" />
                    <sr:Button Text="Undo" SmallImage="/HydraShellClient;component/Resources/Icons/16/undo.png" Size="Small" IsEnabled="False">
                        <sr:RibbonPopup />
                    </sr:Button>
                    <sr:Button Text="Print" SmallImage="/HydraShellClient;component/Resources/Icons/16/print.png" Size="Small" />
                </sr:QuickAccessToolBar>
            </sr:Ribbon.ToolBar>
            <sr:Ribbon.EditingContexts>
                <sr:EditingContext x:Name="editingContextPictureTools" Text="Picture Tools" Color="#F6B078" Reference="PICTURE" />
            </sr:Ribbon.EditingContexts>

            <sr:RibbonTab Text="Home">
                <sr:RibbonGroup Header="Clipboard" ShowDialogLauncher="True" LaunchDialog="RibbonGroup_LaunchDialog">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Variant="Medium" Priority="0" />
                    </sr:RibbonGroup.Variants>
                    <sr:Button Text="Paste" SmallImage="/HydraShellClient;component/Resources/Icons/16/paste.png" LargeImage="/HydraShellClient;component/Resources/Icons/32/paste.png" Size="Large" IsSplit="True" sr:ScreenTip.Text="Paste">
                        <sr:RibbonPopup>
                            <sr:Menu>
                                <sr:MenuItem Image="/HydraShellClient;component/Resources/Icons/16/paste.png" Text="Paste" />
                                <sr:MenuItem Image="/HydraShellClient;component/Resources/Icons/16/paste.png" Text="Paste Special..." />
                                <sr:MenuItem Text="Paste as Hyperlink" IsEnabled="False"  />
                            </sr:Menu>
                        </sr:RibbonPopup>
                    </sr:Button>
                    <StackPanel>
                        <sr:Button Text="Cut" SmallImage="/HydraShellClient;component/Resources/Icons/16/cut.png" CollapseToSmall="WhenGroupIsMedium" sr:ScreenTip.Text="Cut" />
                        <sr:Button Text="Copy" SmallImage="/HydraShellClient;component/Resources/Icons/16/copy.png" CollapseToSmall="WhenGroupIsMedium" sr:ScreenTip.Text="Copy" />
                        <sr:Button Text="Format Painter" SmallImage="/HydraShellClient;component/Resources/Icons/16/color.png" CollapseToSmall="WhenGroupIsMedium" sr:ScreenTip.Text="Format Painter" />
                    </StackPanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Font" ShowDialogLauncher="True" LaunchDialog="RibbonGroup_LaunchDialog">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Variant="Medium" Priority="3" />
                        <sr:GroupVariant Variant="Small" Priority="7" />
                        <sr:GroupVariant Variant="Collapsed" Priority="8" />
                    </sr:RibbonGroup.Variants>
                    <sr:ShufflePanel CondensedChildOrder="0,3,2,4,1">
                        <StackPanel Orientation="Horizontal">
                            <sr:ComboBox Width="135" sr:KeyboardAccess.Keys="FF" SelectedIndex="1" sr:ScreenTip.Text="Font">
                                <sr:ComboBoxItem Content="Arial" Image="/HydraShellClient;component/Resources/Icons/truetype.png" />
                                <sr:ComboBoxItem Content="Calibri (Body)" Image="/HydraShellClient;component/Resources/Icons/truetype.png" />
                                <sr:ComboBoxItem Content="Tahoma" Image="/HydraShellClient;component/Resources/Icons/truetype.png" />
                                <sr:ComboBoxItem Content="Verdana" Image="/HydraShellClient;component/Resources/Icons/truetype.png" />
                                <sr:ComboBoxItem Content="Times New Roman" Image="/HydraShellClient;component/Resources/Icons/truetype.png" />
                                <sr:ComboBoxItem Content="Cambria" Image="/HydraShellClient;component/Resources/Icons/truetype.png" />
                            </sr:ComboBox>
                            <sr:ComboBox Name="comboFontSize" Width="45" sr:KeyboardAccess.Keys="FS" SelectedIndex="0" sr:ScreenTip.Text="Font Size">
                                <sr:ComboBoxItem Content="8" />
                                <sr:ComboBoxItem Content="9" />
                                <sr:ComboBoxItem Content="10" />
                                <sr:ComboBoxItem Content="11" />
                                <sr:ComboBoxItem Content="12" />
                                <sr:ComboBoxItem Content="14" />
                                <sr:ComboBoxItem Content="16" />
                                <sr:ComboBoxItem Content="18" />
                            </sr:ComboBox>
                            <!--sr:ComboBox Name="comboFontFamily" ItemWidth="200" ItemHeight="24" DropDownWidth="201" />
							<sr:ComboBox Name="comboFontSize" IsEditable="true" ItemWidth="25" DropDownWidth="26" DropDownHeight="180"   /-->
                        </StackPanel>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/font-increasesize.png" sr:KeyboardAccess.Keys="FG" sr:ScreenTip.Text="Grow Font" />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/font-decreasesize.png" sr:KeyboardAccess.Keys="FK" sr:ScreenTip.Text="Shrink Font" />
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/pushpin.png" Text="Clear Formatting" sr:KeyboardAccess.Keys="E" sr:ScreenTip.Text="Clear Formatting" />
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/bold.png" sr:KeyboardAccess.Keys="1" AutoCheck="Toggle" sr:ScreenTip.Text="Bold" sr:ScreenTip.Description="Make the selected text bold." sr:ScreenTip.Image="/HydraShellClient;component/Resources/Icons/users.png" />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/italic.png" sr:KeyboardAccess.Keys="2" AutoCheck="Toggle" sr:ScreenTip.Text="Italic" sr:ScreenTip.Description="Italicize the selected text." />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/underline.png" sr:KeyboardAccess.Keys="3" AutoCheck="Toggle" IsSplit="True" sr:ScreenTip.Text="Underline" sr:ScreenTip.Description="Underline the selected text.">
                                <sr:RibbonPopup ResizeMode="Vertical">
                                    <sr:Gallery ViewportWidth="157" ViewportHeight="184" ItemWidth="156" ItemHeight="26">
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/squiggle.png" />
                                    </sr:Gallery>
                                    <sr:Separator />
                                    <sr:Menu>
                                        <sr:MenuItem Text="More Underlines..." />
                                        <sr:MenuItem Text="Underline Color" Image="/HydraShellClient;component/Resources/Icons/16/linecolor.png">
                                            <sr:RibbonPopup>
                                                <sr:Menu>
                                                    <sr:MenuItem Text="Automatic" />
                                                </sr:Menu>
                                                <sr:Heading Content="Theme Colors" />
                                                <sr:ColorPicker ShowGraduations="True">
                                                    <Color>#FFFFFF</Color>
                                                    <Color>#000000</Color>
                                                    <Color>#EEECE1</Color>
                                                    <Color>#1F497D</Color>
                                                    <Color>#4F81BD</Color>
                                                    <Color>#C0504D</Color>
                                                    <Color>#9BBB59</Color>
                                                    <Color>#8064A2</Color>
                                                    <Color>#4BACC6</Color>
                                                    <Color>#F79646</Color>
                                                </sr:ColorPicker>
                                                <sr:Heading Content="Standard Colors" />
                                                <sr:ColorPicker ShowGraduations="False">
                                                    <Color>#C00000</Color>
                                                    <Color>#FF0000</Color>
                                                    <Color>#FFC000</Color>
                                                    <Color>#FFFF00</Color>
                                                    <Color>#92D050</Color>
                                                    <Color>#00B050</Color>
                                                    <Color>#00B0F0</Color>
                                                    <Color>#0070C0</Color>
                                                    <Color>#002060</Color>
                                                    <Color>#7030A0</Color>
                                                </sr:ColorPicker>
                                                <sr:Separator />
                                                <sr:Menu>
                                                    <sr:MenuItem Text="More Colors..." />
                                                </sr:Menu>
                                            </sr:RibbonPopup>
                                        </sr:MenuItem>
                                    </sr:Menu>
                                </sr:RibbonPopup>
                            </sr:Button>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/strikeout.png" Text="Strikethrough" sr:KeyboardAccess.Keys="4" AutoCheck="Toggle" sr:ScreenTip.Text="Strikethrough" sr:ScreenTip.Description="Draw a line through the middle of the selected text." />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/subscript.png" sr:KeyboardAccess.Keys="5" AutoCheck="Toggle" sr:ScreenTip.Text="Subscript" sr:ScreenTip.Description="Create small letters below the text baseline." />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/superscript.png" sr:KeyboardAccess.Keys="6" AutoCheck="Toggle" sr:ScreenTip.Text="Superscript" sr:ScreenTip.Description="Create small letters above the line of text." />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/fontscheme.png" Text="Change Case" sr:KeyboardAccess.Keys="7" sr:ScreenTip.Text="Change Case" sr:ScreenTip.Description="Change all the selected text to UPPERCASE, lowercase, or other common capitalizations.">
                                <sr:RibbonPopup />
                            </sr:Button>
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/highlight.png" Text="Highlight Color" sr:KeyboardAccess.Keys="I" sr:ScreenTip.Text="Text Highlight Color" sr:ScreenTip.Description="Make text look like it was marked with a highlighter pen.">
                                <sr:RibbonPopup />
                            </sr:Button>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/fontcolor.png" Text="Font Color" sr:KeyboardAccess.Keys="FC" sr:ScreenTip.Text="Font Color" sr:ScreenTip.Description="Change the text color.">
                                <sr:RibbonPopup>
                                    <sr:Menu>
                                        <sr:MenuItem Text="Automatic" />
                                    </sr:Menu>
                                    <sr:Heading Content="Theme Colors" />
                                    <sr:ColorPicker Name="colorPickerFontColor" ColorPicked="colorPickerFontColor_ColorPicked">
                                        <Color>#FFFFFF</Color>
                                        <Color>#000000</Color>
                                        <Color>#EEECE1</Color>
                                        <Color>#1F497D</Color>
                                        <Color>#4F81BD</Color>
                                        <Color>#C0504D</Color>
                                        <Color>#9BBB59</Color>
                                        <Color>#8064A2</Color>
                                        <Color>#4BACC6</Color>
                                        <Color>#F79646</Color>
                                    </sr:ColorPicker>
                                </sr:RibbonPopup>
                            </sr:Button>
                        </sr:ButtonGroup>
                    </sr:ShufflePanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Paragraph" ShowDialogLauncher="True" LaunchDialog="RibbonGroup_LaunchDialog">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Variant="Medium" Priority="2" />
                        <sr:GroupVariant Variant="Collapsed" Priority="6" />
                    </sr:RibbonGroup.Variants>
                    <sr:ShufflePanel CondensedChildOrder="0,1,4,5,6,2,3">
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/list-bullets.png" sr:KeyboardAccess.Keys="U">
                                <sr:RibbonPopup />
                            </sr:Button>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/list-numbered.png" sr:KeyboardAccess.Keys="N">
                                <sr:RibbonPopup />
                            </sr:Button>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/list-numbered-tb.png" Text="Multilevel List" sr:KeyboardAccess.Keys="M">
                                <sr:RibbonPopup />
                            </sr:Button>
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/outdent.png" sr:KeyboardAccess.Keys="AO" />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/indent.png" sr:KeyboardAccess.Keys="AI" />
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/sortasc.png" Text="Sort" sr:KeyboardAccess.Keys="SO" />
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/zoom.png" Text="Zoom" sr:KeyboardAccess.Keys="8" />
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/alignleft.png" sr:KeyboardAccess.Keys="AL" AutoCheck="Radio" IsChecked="True" />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/aligncenter.png" sr:KeyboardAccess.Keys="AC" AutoCheck="Radio" />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/alignright.png" sr:KeyboardAccess.Keys="AR" AutoCheck="Radio" />
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/alignjustify.png" sr:KeyboardAccess.Keys="AJ" AutoCheck="Radio" />
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/expandspace.png" Text="Line Spacing" sr:KeyboardAccess.Keys="K">
                                <sr:RibbonPopup />
                            </sr:Button>
                        </sr:ButtonGroup>
                        <sr:ButtonGroup>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/linecolor.png" Text="Shading" sr:KeyboardAccess.Keys="H">
                                <sr:RibbonPopup />
                            </sr:Button>
                            <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/ruler.png" Text="Borders" sr:KeyboardAccess.Keys="B">
                                <sr:RibbonPopup />
                            </sr:Button>
                        </sr:ButtonGroup>
                    </sr:ShufflePanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Styles" ShowDialogLauncher="True" LaunchDialog="RibbonGroup_LaunchDialog">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Variant="Medium" Priority="4" />
                        <sr:GroupVariant Variant="Collapsed" Priority="5" />
                    </sr:RibbonGroup.Variants>
                    <sr:RibbonGallery ItemWidth="72" ItemHeight="56" sr:KeyboardAccess.Keys="L" Text="Quick Styles" Image="/HydraShellClient;component/Resources/Icons/users.png" ResizeMode="HorizontalAndVertical">
                        <sr:RibbonGallery.PopupItems>
                            <sr:Menu>
                                <sr:MenuItem Text="Save Selection as a Quick Style..." />
                                <sr:MenuItem Text="Clear Formatting" />
                                <sr:MenuItem Text="Apply Styles..." />
                            </sr:Menu>
                        </sr:RibbonGallery.PopupItems>
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" IsChecked="True" />
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" />
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" />
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" />
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" />
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" />
                        <sr:GalleryButton SmallImage="/HydraShellClient;component/Resources/Icons/paragraph.png" />
                    </sr:RibbonGallery>
                    <sr:Button Text="Change Styles" Size="Large" LargeImage="/HydraShellClient;component/Resources/Icons/users.png" sr:KeyboardAccess.Keys="G">
                        <sr:RibbonPopup />
                    </sr:Button>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Editing">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Variant="Collapsed" Priority="1" />
                    </sr:RibbonGroup.Variants>
                    <sr:CollapsiblePanel>
                        <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/find.png" Text="Find">
                            <sr:RibbonPopup />
                        </sr:Button>
                        <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/findnext.png" Text="Replace" />
                        <sr:Button SmallImage="/HydraShellClient;component/Resources/Icons/16/pointer.png" Text="Select" />
                    </sr:CollapsiblePanel>
                </sr:RibbonGroup>
            </sr:RibbonTab>
            <sr:RibbonTab Text="Insert">
                <sr:RibbonGroup Header="Pages" ShowDialogLauncher="False">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Priority="2" Variant="Medium" />
                        <sr:GroupVariant Priority="8" Variant="Collapsed" />
                    </sr:RibbonGroup.Variants>
                    <sr:CollapsiblePanel>
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/Divelements.SandRibboncomponent/Resources/defaultimage32.png" Size="Large" Text="Cover Page" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/new.png" SmallImage="/HydraShellClient;component/Resources/Icons/16/new.png" Size="Large" Text="Blank Page" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/portraitlandscape.png" Size="Large" Text="Page Break" />
                    </sr:CollapsiblePanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Tables" ShowDialogLauncher="False">
                    <sr:Button LargeImage="/HydraShellClient;component/Resources/Icons/32/arrangewindows.png" Size="Large" Text="Table">
                        <sr:RibbonPopup />
                    </sr:Button>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Illustrations" ShowDialogLauncher="False">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Priority="5" Variant="Medium" />
                        <sr:GroupVariant Priority="10" Variant="Small" />
                        <sr:GroupVariant Priority="13" Variant="Collapsed" />
                    </sr:RibbonGroup.Variants>
                    <sr:Button LargeImage="/Divelements.SandRibboncomponent/Resources/defaultimage32.png" Size="Large" Text="Picture" />
                    <sr:Button LargeImage="/HydraShellClient;component/Resources/Icons/32/homepage.png" Size="Large" Text="Clip Art" />
                    <sr:CollapsiblePanel>
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" CollapseToSmall="WhenGroupIsSmall" LargeImage="/HydraShellClient;component/Resources/Icons/32/relationships.png" Size="Large" Text="Shapes" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" CollapseToSmall="WhenGroupIsSmall" LargeImage="/HydraShellClient;component/Resources/Icons/32/newclassmodule.png" Size="Large" Text="SmartArt" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" CollapseToSmall="WhenGroupIsSmall" LargeImage="/HydraShellClient;component/Resources/Icons/32/chart.png" Size="Large" Text="Chart" />
                    </sr:CollapsiblePanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Links" ShowDialogLauncher="False">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Priority="0" Variant="Medium" />
                        <sr:GroupVariant Priority="7" Variant="Collapsed" />
                    </sr:RibbonGroup.Variants>
                    <sr:CollapsiblePanel>
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/inserthyperlink.png" SmallImage="/HydraShellClient;component/Resources/Icons/16/inserthyperlink.png" Size="Large" Text="Hyperlink" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/protectform.png" Size="Large" Text="Bookmark" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/copy.png" Size="Large" Text="Cross-reference" />
                    </sr:CollapsiblePanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Header &amp; Footer" ShowDialogLauncher="False">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Priority="4" Variant="Medium" />
                        <sr:GroupVariant Priority="12" Variant="Collapsed" />
                    </sr:RibbonGroup.Variants>
                    <sr:CollapsiblePanel>
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/fullscreen.png" Size="Large" Text="Header" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/Divelements.SandRibboncomponent/Resources/defaultimage32.png" Size="Large" Text="Footer" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/properties.png" Size="Large" Text="Page Number">
                            <sr:RibbonPopup>
                                <sr:Menu>
                                    <sr:MenuItem Text="Top of Page">
                                        <sr:RibbonPopup />
                                    </sr:MenuItem>
                                    <sr:MenuItem Text="Bottom of Page">
                                        <sr:RibbonPopup />
                                    </sr:MenuItem>
                                    <sr:MenuItem Text="Page Margins">
                                        <sr:RibbonPopup />
                                    </sr:MenuItem>
                                    <sr:MenuItem Text="Current Position">
                                        <sr:RibbonPopup />
                                    </sr:MenuItem>
                                    <sr:Separator />
                                    <sr:MenuItem Text="Format Page Numbers..." />
                                    <sr:MenuItem Text="Remove Page Numbers" />
                                </sr:Menu>
                            </sr:RibbonPopup>
                        </sr:Button>
                    </sr:CollapsiblePanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Text" ShowDialogLauncher="False">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Priority="3" Variant="Medium" />
                        <sr:GroupVariant Priority="6" Variant="Small" />
                        <sr:GroupVariant Priority="11" Variant="Collapsed" />
                    </sr:RibbonGroup.Variants>
                    <sr:Button LargeImage="/HydraShellClient;component/Resources/Icons/32/textbox.png" Size="Large" Text="Text Box" />
                    <sr:CollapsiblePanel>
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/Divelements.SandRibboncomponent/Resources/defaultimage32.png" Size="Large" Text="Quick Parts" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/highlight.png" SmallImage="/HydraShellClient;component/Resources/Icons/16/highlight.png" Size="Large" Text="WordArt" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/crop.png" Size="Large" Text="Drop Cap" />
                    </sr:CollapsiblePanel>
                    <StackPanel>
                        <sr:Button CollapseToSmall="WhenGroupIsSmall" SmallImage="/Divelements.SandRibboncomponent/Resources/defaultimage16.png" Size="Medium" Text="Signature Line" />
                        <sr:Button CollapseToSmall="WhenGroupIsSmall" SmallImage="/Divelements.SandRibboncomponent/Resources/defaultimage16.png" Size="Medium" Text="Date &amp; Time" />
                        <sr:Button CollapseToSmall="WhenGroupIsSmall" SmallImage="/HydraShellClient;component/Resources/Icons/16/inserttabcontrol.png" Size="Medium" Text="Object" />
                    </StackPanel>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Symbols" ShowDialogLauncher="False">
                    <sr:RibbonGroup.Variants>
                        <sr:GroupVariant Priority="1" Variant="Medium" />
                        <sr:GroupVariant Priority="9" Variant="Collapsed" />
                    </sr:RibbonGroup.Variants>
                    <sr:CollapsiblePanel>
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/function.png" Size="Large" Text="Equation" />
                        <sr:Button CollapseToMedium="WhenGroupIsMedium" LargeImage="/HydraShellClient;component/Resources/Icons/32/find.png" SmallImage="/HydraShellClient;component/Resources/Icons/16/find.png" Size="Large" Text="Symbol" />
                    </sr:CollapsiblePanel>
                </sr:RibbonGroup>
            </sr:RibbonTab>
            <sr:RibbonTab Text="Page Layout"></sr:RibbonTab>
            <sr:RibbonTab Text="References"></sr:RibbonTab>
            <sr:RibbonTab Text="Review"></sr:RibbonTab>
            <sr:RibbonTab Text="View">
                <sr:RibbonGroup Header="Page" ShowDialogLauncher="False">
                    <sr:Button Text="Refresh" Activate="Page_Refresh"/>
                </sr:RibbonGroup>
                <sr:RibbonGroup Header="Diagnostics" ShowDialogLauncher="False">
                    <sr:Button Text="Package Monitor" Activate="Diagnostics_ViewPackageMonitor"/>
                </sr:RibbonGroup>
            </sr:RibbonTab>
            <sr:RibbonTab Text="Format" EditingContextReference="PICTURE" />
            <sr:RibbonTab Text="About"></sr:RibbonTab>
        </sr:Ribbon>
    </Grid>
</UserControl>
